import { createI18n } from 'vue-i18n'

export const i18n = createI18n({
  legacy: false,
  locale: 'cn',
  fallbackLocale: 'en',
  messages: {
    en: {
      pokedex: {
        title: 'Pokédex',
        search: 'Search Pokémon...',
        typeFilter: 'Type Filter',
        stats: {
          hp: 'HP',
          attack: 'Attack',
          defense: 'Defense',
          'special-attack': 'Sp. Atk',
          'special-defense': 'Sp. Def',
          speed: 'Speed'
        },
        types: {
          normal: 'Normal',
          fire: 'Fire',
          water: 'Water',
          electric: 'Electric',
          grass: 'Grass',
          ice: 'Ice',
          fighting: 'Fighting',
          poison: 'Poison',
          ground: 'Ground',
          flying: 'Flying',
          psychic: 'Psychic',
          bug: 'Bug',
          rock: 'Rock',
          ghost: 'Ghost',
          dragon: 'Dragon',
          dark: 'Dark',
          steel: 'Steel',
          fairy: 'Fairy'
        },
        tabs: {
          basic: 'Basic Info',
          moves: 'Moves',
          evolution: 'Evolution',
          stats: 'Base Stats'
        },
        stats: {
          title: 'Base Stats',
          hp: 'HP',
          attack: 'Attack',
          defense: 'Defense',
          'special-attack': 'Sp. Atk',
          'special-defense': 'Sp. Def',
          speed: 'Speed',
          baseStats: 'Base Stats'
        },
        moves: {
          name: 'Move',
          power: 'Power',
          accuracy: 'Accuracy',
          type: 'Type'
        },
        size: {
          small: 'Small',
          medium: 'Medium',
          large: 'Large'
        },
        description: {
          about: 'About',
          category: 'Category',
          height: 'Height',
          weight: 'Weight'
        }
      },
      common: {
        back: 'Back',
        loading: 'Loading...',
        theme: {
          light: 'Light',
          dark: 'Dark'
        },
        language: 'Language'
      }
    },
    cn: {
      pokedex: {
        title: '宝可梦图鉴',
        search: '搜索宝可梦...',
        typeFilter: '属性筛选',
        stats: {
          hp: '生命',
          attack: '攻击',
          defense: '防御',
          'special-attack': '特攻',
          'special-defense': '特防',
          speed: '速度'
        },
        types: {
          normal: '一般',
          fire: '火',
          water: '水',
          electric: '电',
          grass: '草',
          ice: '冰',
          fighting: '格斗',
          poison: '毒',
          ground: '地面',
          flying: '飞行',
          psychic: '超能力',
          bug: '虫',
          rock: '岩石',
          ghost: '幽灵',
          dragon: '龙',
          dark: '恶',
          steel: '钢',
          fairy: '妖精'
        },
        tabs: {
          basic: '基础信息',
          moves: '技能列表',
          evolution: '进化链',
          stats: '种族值'
        },
        stats: {
          title: '基础属性',
          hp: '生命',
          attack: '攻击',
          defense: '防御',
          'special-attack': '特攻',
          'special-defense': '特防',
          speed: '速度',
          baseStats: '种族值'
        },
        moves: {
          name: '技能',
          power: '威力',
          accuracy: '命中',
          type: '属性'
        },
        size: {
          small: '小',
          medium: '中',
          large: '大'
        },
        description: {
          about: '简介',
          category: '分类',
          height: '身高',
          weight: '体重'
        }
      },
      common: {
        back: '返回',
        loading: '加载中...',
        theme: {
          light: '浅色',
          dark: '深色'
        },
        language: '语言'
      }
    }
  }
}) 